/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-06-24     29922       the first version
 */
#ifndef APPLICATIONS_KEY_H_
#define APPLICATIONS_KEY_H_
#include <rtthread.h>
#include "drv_gpio.h"

#define USER_LED1 GET_PIN(0,0)
#define USER_KEY  GET_PIN(6,2)

//#define USING_KEY_IRQ
#define USING_KEY_POLL

void key_init(void);
rt_err_t key_sample(void);


#endif /* APPLICATIONS_KEY_H_ */
